﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="UserManagement.aspx.cs" Inherits="InventoryProject.User.UserManagement" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <div class="editform">    
        <ul>
            <li>
                <div class="divColumn">
                    <label class="label">Mã hệ thống</label>
                    <br/>
                    <asp:TextBox runat="server" ID="txtUserID" class="textbox" Enabled="false"></asp:TextBox>
                </div>
                <div class="divColumn">
                    <label class="label">Tên đăng nhập</label>
                    <br/>
                    <asp:TextBox runat="server" ID="txtUserNm" class="textbox"></asp:TextBox>
                </div>
                <div class="divColumn">
                    <label class="label">Tên hiển thị</label>
                    <br/>
                    <asp:TextBox runat="server" ID="txtDisplayNm" class="textbox"></asp:TextBox>
                </div>                
                <div class="clear"></div>
            </li>
            <li>
                <div class="divColumn">
                    <label class="label">Mật khẩu</label>
                    <br/>
                    <asp:TextBox runat="server" ID="txtPassword" class="textbox" TextMode="Password"></asp:TextBox>
                </div>
                <div class="divColumn">
                    <label class="label">Xác nhận mật khẩu</label>
                    <br/>
                    <asp:TextBox runat="server" ID="txtRePassword" class="textbox" TextMode="Password"></asp:TextBox>
                </div>
                <div class="clear"></div>
            </li>
            <br />
            <div class="editbutton">
                <asp:Button runat="server" class="button" ID="btnSave" Text="Lưu" 
                    onclick="btnSave_Click" />
                <asp:Button runat="server" class="button" ID="btnClear" Text="Clear" 
                    onclick="btnClear_Click" />
            </div>
            <br />
            <asp:GridView ID="grdData" runat="server" AutoGenerateColumns="false" 
                    AllowSorting="true" AllowPaging="true" PageSize="5" 
                    PagerSettings-Mode="NextPreviousFirstLast" 
                    onrowcommand="grdData_RowCommand" onrowdeleting="grdData_RowDeleting" onrowdatabound="grdData_RowDataBound">
            <HeaderStyle BackColor="AliceBlue" />
            <Columns>                
                <asp:BoundField HeaderText="Mã hệ thống" DataField="UserID" HeaderStyle-Width="100px" />
                <asp:BoundField HeaderText="Tên đăng nhập" DataField="Username" HeaderStyle-Width="140px" />
                <asp:BoundField HeaderText="Tên hiển thị" DataField="DisplayName" HeaderStyle-Width="160px" />
                <asp:BoundField HeaderText="Mật khẩu" DataField="Password" Visible="false" />
                <asp:BoundField HeaderText="Phân quyền" DataField="Role" Visible="false" />
                <asp:CommandField ButtonType="Image" ShowDeleteButton="true" DeleteText="Xóa" HeaderStyle-Width="50px" ItemStyle-HorizontalAlign="Center" />
            </Columns>
        </asp:GridView>
        </ul>
    </div>
     
        
    
</asp:Content>
